import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:flutter_example/app/modules/home/components/banner_view.dart';
import 'package:flutter_example/app/modules/home/controllers/home_controller.dart';
import 'package:get/get.dart';

import '../../../units/keepAliveWrapper.dart';
import '../components/swiper_view.dart';

class HomeView extends GetView<HomeController> {
  const HomeView({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: CustomScrollView(
        slivers: [
          SliverToBoxAdapter(
            child: Container(
              height: 200,
              child: SwiperView(), //轮播图
            ),
          ),
          SliverToBoxAdapter(
            child: Container(
              child: BannerView(), //banner
            ),
          ),
        ],
      ) 
      );
  }

}